package grape.base.rest.message.mapper;

import grape.base.rest.message.form.MessageSendForm;
import grape.base.service.message.po.Message;
import grape.common.rest.mvc.WebMapper;
import org.mapstruct.Mapper;
import grape.base.rest.message.form.MessageCreateForm;
import grape.base.rest.message.form.MessageUpdateForm;
import grape.base.rest.message.form.MessageListPageForm;
import grape.base.rest.message.vo.MessageVo;
import org.mapstruct.ReportingPolicy;
/**
 * <p>
 * 消息表 前端领域模型映射
 * </p>
 *
 * @author yangwei
 * @since 2020-03-18
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface MessageWebMapper extends WebMapper<MessageVo, Message> {

    Message formToPo(MessageCreateForm f);
    Message formToPo(MessageUpdateForm f);
    Message formToPo(MessageListPageForm f);
    Message formToPo(MessageSendForm f);
}
